/*============================================================================
 PROJECT: Halalgems
 FILE:    DataCenter.m
 AUTHOR:  Nguyen Minh Khoai
 =============================================================================*/

/*============================================================================
 IMPORT
 =============================================================================*/

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import "BaseNetwork.h"

/*============================================================================
 MACRO
 =============================================================================*/


@class Deal;
/*============================================================================
 PRIVATE INTERFACE
 =============================================================================*/

/*----------------------------------------------------------------------------
 Interface:   DataCenter
 -----------------------------------------------------------------------------*/
@class GooglePrediction;
@interface DataCenter : NSObject
#pragma mark - AloTruyen

-(void)getAuthorListWithBlock:(void(^)(id result,id error))block;

-(void)getMenuFromLeftMenu:(NSString*)url
                  andBlock:(void(^)(id result,id error))block;

-(void)getBookWithURL:(NSString*)url
             andBlock:(void(^)(id result,id error))block;

-(void)getMenuFromHomeWithBlock:(void(^)(id result,id error))block;

-(void)getBookFromLeftMenuWithSpecID:(NSString*)specID andBlock:(void(^)(id result,id error))block;
#pragma mark - Google Service APIs

- (void)getCurrentLocationUsingBlock:(void (^)(id data, id error))block;
- (void)getHintListFromGoogle:(NSString *)keyword usingBlock:(void (^)(id data, id error))block;
- (void)getPlaceDetailFromGoogle:(GooglePrediction *)prediction usingBlock:(void (^)(id data, id error))block;
- (void)getRoutesBetweenA:(CLLocation *)locationA
                     andB:(CLLocation *)locationB
                   inMode:(NSString *)mode
               usingBlock:(void (^)(id data, id error))block;

@end

